﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;
using DAO;

namespace Banking.Nhân_viên
{
    public partial class TaoTaiKhoanMoiKH : UserControl
    {
        List<LoaiKH> DSloaiKH;
        List<LoaiTaiKhoan> DSLoaiTK;
        public TaoTaiKhoanMoiKH()
        {
            InitializeComponent();
            LoadForm();
        }
        private void LoadForm()
        {
            DSloaiKH = LoaiKHDA.GetALl(0);
            foreach (LoaiKH loai in DSloaiKH)
            {
                cmbLoaiKH.Items.Add(loai.TenLoai);
            }
            cmbLoaiKH.SelectedIndex = 0;
            DSLoaiTK = LoaiTaiKhoanDA.GetAllTKThe();
            foreach (LoaiTaiKhoan loai in DSLoaiTK)
            {
                cmbLoaiTK.Items.Add(loai.TenTK);
            }
            cmbLoaiTK.SelectedIndex = 0;
            
        }
    }
}
